package com.study.day20190709;

import java.util.Timer;
import java.util.TimerTask;

public class TimerThreadTest {
    public static void main(String[] args) {
        Timer timer=new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("定时器");
            }
        },0,1000);

        System.out.println("业务");
    }
}
